package moyangjia.retailers.storage.sys.service.Impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import moyangjia.retailers.storage.sys.dao.SysOrgDao;
import moyangjia.retailers.storage.sys.domain.SysOrg;
import moyangjia.retailers.storage.sys.service.IOrgService;
import moyangjia.retailers.storage.sys.dao.SysDictDao;
import moyangjia.retailers.storage.sys.dao.SysOrgDao;
import moyangjia.retailers.storage.sys.domain.SysDict;
import moyangjia.retailers.storage.sys.domain.SysMenu;
import moyangjia.retailers.storage.sys.domain.SysOrg;
import moyangjia.retailers.storage.sys.service.IDictService;
import moyangjia.retailers.storage.sys.service.IOrgService;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: honglei
 * @time: 2021/3/15 0015 14:23
 */
@Service
public class OrgServiceImpl extends ServiceImpl<SysOrgDao,SysOrg> implements IOrgService {
    @Override
    public Object getListPage(SysOrg entity) {
        IPage<SysOrg> page=new Page<>();
        Wrapper<SysOrg> wrapper=new QueryWrapper<>(entity);
        page=this.baseMapper.selectPage(page,wrapper);
        return page;
    }
}
